package com.zq.spring.bean;

/**
 * @Author: zhaoqi
 * @Date: 2020/4/29 15:47
 * @Version 1.0
 */


public class OneBean {


    private String name;
    private int age;
    private String email;

    public OneBean() {
        System.out.println("调用了无参构造器");
    }


    public OneBean(String name) {
        this.name = name;
        System.out.println("调用了有参构造器");
    }

    public   void  doSomeThing(){
        System.out.println("OneBean的 doSomeThing方法");
    }



    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
}
